package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("cart")
@TableName(value = "cart")
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *序号
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
    * 用户ID
    */
    @TableField(value = "user_id")
    private Integer userId;
    /**
    * 商品ID
    */
    @TableField(value = "prod_id")
    private Integer prodId;
    /**
    * 数量
    */
    @TableField(value = "qty")
    private Integer qty;
    /**
    * 商品信息
    */
    @TableField(exist = false)
    private  Product product;


}